/*
 * Copyright (c) 2021. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

import com.xxpure.Point.MyPoint;
import com.xxpure.Point.PointFactory;
import com.xxpure.compare.KMeansCompare;
import com.xxpure.kmeans.KMeans;

/**
 * @program: KNN
 * @author: Mr.xiao
 * @email: 1347772729@qq.com
 * @create: 2021-07-04 16:41
 **/
public class TestPoint {
    public static void main(String[] args) {
        var pointFactory = new PointFactory(1001, 1000);
        var means = new KMeans<MyPoint>(pointFactory.getInitialData(), 10);
        var compare = new KMeansCompare();
        while (true) {
            try {
                System.out.println(means.nextSample(compare));
            } catch (Exception e) {
                break;
            }
        }
    }

}
